FROM hub.c.163.com/library/nginx:latest as production-stage

COPY run.sh /opt/application/

RUN chmod +x /opt/application/run.sh

RUN mkdir /wwwroot

# 复制自定义的Nginx配置文件到容器中
COPY nginx.conf /etc/nginx/nginx.conf

# 复制wwwroot目录到容器中
COPY wwwroot /wwwroot

# 暴露端口8000
EXPOSE 8000